import {useState} from 'react';
import './App.css';
import Course from './component/Course';

function App() {
  const [show,setShow] = useState(true);
  return (
    <div className="App">
      { show?<Course />:"" }
      <button onClick={ ()=>{ setShow(!show) } }>
        {show?"yicang":"xianshi"}
      </button>
    </div>
  );
}

export default App;
